package com.nuanshui.heatedloan.msgcenter.vo;

import com.nuanshui.framework.lang.DateUtil;
import com.nuanshui.heatedloan.msgcenter.model.AppPushMsg;

public class AppPushMsgVO extends AppPushMsg {
	private static final long serialVersionUID = 3480987398257748747L;
	private String pushTimeStr;//给前端显示的时间
	private String createdAtStr;
	

	public String getCreatedAtStr() {
		
		if(super.getPushTime() != null){
			return DateUtil.format(super.getCreatedAt(), "yyyy-MM-dd HH:mm:ss");
		}
		return createdAtStr;
	}

	public void setCreatedAtStr(String createdAtStr) {
		this.createdAtStr = createdAtStr;
	}

	public String getPushTimeStr() {
		if(super.getPushTime() != null){
			return DateUtil.format(super.getPushTime(), "yyyy-MM-dd HH:mm:ss");
		}
		return pushTimeStr;
	}

	public void setPushTimeStr(String pushTimeStr) {
		this.pushTimeStr = pushTimeStr;
	}
}
